package com.xiaohong.search.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xiaohong.goods.pojo.Sku;
import io.swagger.v3.oas.annotations.media.Schema;
//import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

//@Document(indexName = "xiaohong_spu")   //7版本及以上使用
public class SpuInfo implements Serializable {

    private String id;//主键
    private String name;//SPU名
    private String caption;//副标题
    private Integer brandId;//品牌ID
    private String brandChineseName;//品牌中文名称
    private String brandEnglishName;//品牌英文名称
    private String category1Name;//一级分类名称
    private String category2Name;//二级分类名称
    private String category3Name;//三级分类名称
    private Integer category1Id;//一级分类
    private Integer category2Id;//二级分类
    private Integer category3Id;//三级分类
    private String introduction;//介绍
    private String specItems;//规格列表
    private Map<String,Object> specMap; // 规格Map
    private String specAggregationItems;//搜索可聚合规格列表
    private Map<String,Object> specAggregationMap; // 搜索可聚合规格Map
    private String specSkuItems;//sku选择聚合规格列表
    private Map<String,Object> specSkuMap; // sku选择聚合规格Map
    private Integer saleNum;//销量
    private Integer commentNum;//评论数
    private Integer isMarketable;//是否上架,0已下架，1已上架
    private Integer status;//审核状态，0：未审核，1：已审核，2：审核不通过
    private String afterService;//售后服务
    private String gmtCreate;//创建时间
    private String gmtModified;//更改时间
    private List<Sku> skuList;//skuList


    public String getSpecAggregationItems() {
        return specAggregationItems;
    }

    public void setSpecAggregationItems(String specAggregationItems) {
        this.specAggregationItems = specAggregationItems;
    }

    public Map<String, Object> getSpecAggregationMap() {
        return specAggregationMap;
    }

    public void setSpecAggregationMap(Map<String, Object> specAggregationMap) {
        this.specAggregationMap = specAggregationMap;
    }

    public String getSpecSkuItems() {
        return specSkuItems;
    }

    public void setSpecSkuItems(String specSkuItems) {
        this.specSkuItems = specSkuItems;
    }

    public Map<String, Object> getSpecSkuMap() {
        return specSkuMap;
    }

    public void setSpecSkuMap(Map<String, Object> specSkuMap) {
        this.specSkuMap = specSkuMap;
    }

    public String getSpecItems() {
        return specItems;
    }

    public void setSpecItems(String specItems) {
        this.specItems = specItems;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getBrandChineseName() {
        return brandChineseName;
    }

    public void setBrandChineseName(String brandChineseName) {
        this.brandChineseName = brandChineseName;
    }

    public String getBrandEnglishName() {
        return brandEnglishName;
    }

    public void setBrandEnglishName(String brandEnglishName) {
        this.brandEnglishName = brandEnglishName;
    }

    public String getCategory1Name() {
        return category1Name;
    }

    public void setCategory1Name(String category1Name) {
        this.category1Name = category1Name;
    }

    public String getCategory2Name() {
        return category2Name;
    }

    public void setCategory2Name(String category2Name) {
        this.category2Name = category2Name;
    }

    public String getCategory3Name() {
        return category3Name;
    }

    public void setCategory3Name(String category3Name) {
        this.category3Name = category3Name;
    }

    public Integer getCategory1Id() {
        return category1Id;
    }

    public void setCategory1Id(Integer category1Id) {
        this.category1Id = category1Id;
    }

    public Integer getCategory2Id() {
        return category2Id;
    }

    public void setCategory2Id(Integer category2Id) {
        this.category2Id = category2Id;
    }

    public Integer getCategory3Id() {
        return category3Id;
    }

    public void setCategory3Id(Integer category3Id) {
        this.category3Id = category3Id;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }


    public Map<String, Object> getSpecMap() {
        return specMap;
    }

    public void setSpecMap(Map<String, Object> specMap) {
        this.specMap = specMap;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getIsMarketable() {
        return isMarketable;
    }

    public void setIsMarketable(Integer isMarketable) {
        this.isMarketable = isMarketable;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAfterService() {
        return afterService;
    }

    public void setAfterService(String afterService) {
        this.afterService = afterService;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }


    public List<Sku> getSkuList() {
        return skuList;
    }

    public void setSkuList(List<Sku> skuList) {
        this.skuList = skuList;
    }
}
